<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
  export default {
    name:'App',
    provide(){
      reload:this.reload
    },
    data(){
      return{
        isRouterAlive:true
      }
    },
    methods:{
      reload(){
        this.isRouterAlive = false;
        this.$nextTick(function(){
          this.isRouterAlive = true;
        })
      }
    }
  }
</script>

<style lang="scss" scoped>

</style>
<style lang="scss">
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}
#app {
  width: 100%;
  height: 100%;

  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
.auto-img {
  width: 100%;
  display: block;
}
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

.fl {
  float: left;
}
.fr {
  float: right;
}
* {
  -webkit-touch-callout: none; /*系统默认菜单被禁用*/
  -webkit-user-select: none; /*webkit浏览器*/
  -khtml-user-select: none; /*早期浏览器*/
  -moz-user-select: none; /*火狐*/
  -ms-user-select: none; /*IE10*/
  user-select: none;
}
input {
  -webkit-user-select: auto; /*webkit浏览器*/
}
textarea {
  -webkit-user-select: auto; /*webkit浏览器*/
}
</style>
